package com.xyz;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
//@ComponentScan(basePackages = {"com.xyz"})

public class BeanConfig {

    @Bean
    public TextEditor textEditor(){
        return new TextEditor();
    }

    @Bean
    public SpellChecker spellChecker(){
        return new SpellChecker();
    }
}
